package com.byxy.demo01.dao;

import org.apache.ibatis.annotations.Select;

import com.byxy.demo01.entity.Tab;
import org.apache.ibatis.annotations.Results;

import java.util.List;

import org.apache.ibatis.annotations.Result;
import org.apache.ibatis.annotations.ResultMap;
public interface TabDao {
	@Results(id="Tabl",value={
			@Result(column="tab_id",property="tabId",id=true),
			@Result(column="tab_name",property="tabName"),
			@Result(column="forum_id",property="forumId"),
			@Result(column="tab_status",property="tabStatus"),
		})
	@Select("select * from tab where tab_id =#{tabId}")
	Tab getById(Integer tabId);
	
	@ResultMap("Tabl")
	@Select("select*from tab")
	List<Tab> fina();

}
